package com.ruoyi.project.hcy.product.service.bo;

import com.ruoyi.project.hcy.product.domain.quality.ProQuality;
import com.ruoyi.project.hcy.product.domain.series.ProSeries;
import com.ruoyi.project.hcy.product.domain.specification.ProSpecification;
import com.ruoyi.project.hcy.product.domain.style.ProStyle;
import com.ruoyi.project.hcy.product.service.IProQualityService;
import com.ruoyi.project.hcy.product.service.IProSeriesService;
import com.ruoyi.project.hcy.product.service.IProSpecificationService;
import com.ruoyi.project.hcy.product.service.IProStyleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ProductBo
 * @Author SAI
 * @Date 2020/9/18 18:45
 * @Description ProductBo
 * @Version 1.0
 */
@Service
public class ProductBo {
    @Autowired
    private IProSeriesService proSeriesService;

    @Autowired
    private IProSpecificationService proSpecificationService;

    @Autowired
    private IProQualityService proQualityService;

    @Autowired
    private IProStyleService proStyleService;

    public List<ProSeries> selectSeriesList(ProSeries proSeries){
        return proSeriesService.selectSeriesList(proSeries);
    }

    public List<ProStyle> selectProStyleList(ProStyle proStyle){
            return proStyleService.selectProStyleList(proStyle);
    }

    public List<ProSpecification> selectProSpecificationList(ProSpecification proSpecification){
        return proSpecificationService.selectProSpecificationList(proSpecification);
    }

    public List<ProQuality> selectProQualityList(ProQuality proQuality){
        return proQualityService.selectProQualityList(proQuality);
    }

    public ProSeries selectSeriesById(Long proSeriesId){
        return proSeriesService.selectSeriesById(proSeriesId);
    }

    public ProStyle selectProStyleById(Long proStyleId){
        return proStyleService.selectProStyleById(proStyleId);
    }

    public ProSpecification selectProSpecificationById(Long proSpecificationId){
        return proSpecificationService.selectProSpecificationById(proSpecificationId);
    }

    public ProQuality selectProQualityById(Long proQualityId){
        return proQualityService.selectProQualityById(proQualityId);
    }
}
